﻿// -----------------------------------------------------------------------
// <copyright file="UtilityServices.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SampleApp
{

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class UtilityServices
    {
        /// <summary>
        /// Sample property variable.
        /// </summary>
        private string someProperty;

        /// <summary>
        /// Sample property for demo.
        /// </summary>
        public string SomeProperty
        {
            get { return someProperty; }
            set { someProperty = value; }
        }

        public int GetMaximumValue(List<Int32> numbers )
        {
            int min = Int32.MinValue;
            int max = Int32.MaxValue;

            foreach (int val in numbers)
            {
                max = Math.Max(min, val);
            }

            return max;
        }
    }
}
